package com.example.musictutor.domain;

import java.util.ArrayList;
import java.util.List;

public class Song {
	private long id;
	private String name;
	private int tempo;
	private int highscore;
	private boolean unlocked;
	private List<SongNote> notes;

	public Song() {
		notes = new ArrayList<SongNote>();
	}

	public void addNote(SongNote note) {
		note.setTempo(tempo);
		notes.add(note);
	}

	// Getters and Setters
	
	public String getName() {
		return name;
	}

	public boolean isUnlocked() {
		return unlocked;
	}

	public void setUnlocked(boolean unlocked) {
		this.unlocked = unlocked;
	}

	public int getHighscore() {
		return highscore;
	}

	public void setHighscore(int highscore) {
		this.highscore = highscore;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getTempo() {
		return tempo;
	}

	public void setTempo(int tempo) {
		this.tempo = tempo;
	}


	public List<SongNote> getNotes() {
		return notes;
	}

	public void setNotes(List<SongNote> notes) {
		this.notes = notes;
	}

}
